package com.myapplication.app;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

/**
 * Created by tukela on 2015/3/2.
 */
public class Register2Activity extends Activity implements View.OnClickListener{
    private Button btnLogin;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_register2);
        btnLogin= (Button) findViewById(R.id.login);
        btnLogin.setOnClickListener(this);

    }
    public void sccus(){
        this.setResult(RESULT_OK);//通知register结束
        //结束本Activity
        finish();
    }

    @Override
    public void onClick(View v) {
        switch (v.getId())
        {
            case R.id.login:

              //  startActivity(new Intent(this,CropActivity.class));
                startActivity(new Intent(this,HomeActivity.class));
        }
    }
}
